package com.redis.service;

import com.redis.entity.CityArea;
import com.redis.mapper.RedisGeoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RedisGeoService {


    @Autowired
    RedisGeoMapper redisGeoMapper;


    public CityArea findById(Integer areaId){
        return redisGeoMapper.findById(areaId);
    }


    public List<CityArea> findAll(){

        return redisGeoMapper.findAll();
    }










}
